package com.unhz.taigu.service.impl;

import com.unhz.generator.dao.ProductionRangeMapper;
import com.unhz.generator.pojo.ProductionRange;
import com.unhz.taigu.service.ProductionRangeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: 沈佳庆
 * @Description: 生产范围
 * @Date: Created in 下午 6:41 2018/1/30 0030
 * @Modified By:
 */
@Service
public class ProductionRangeServiceImpl implements ProductionRangeService{


    @Autowired
    private ProductionRangeMapper productionRangeMapper;

    @Override
    public void insert(ProductionRange productionRange) {
        productionRangeMapper.insertSelective(productionRange);
    }

    @Override
    public List<ProductionRange> selectByUserId(Integer userId) {
        return productionRangeMapper.selectByUserId(userId);
    }

    @Override
    public void deleteByUserId(Integer id) {
        productionRangeMapper.deleteByUserid(id);
    }
}
